<!DOCTYPE HTML>
<html>
 <head>
  <title>Dynamic bidi bug</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <style type="text/css">
  p { width: 3ch;}
  </style>
 </head>
 <body>
  <p dir="rtl">0 123 4</p>
 </body>
</html>
